package com.example.lottery_system.dao.Mapper;

import com.example.lottery_system.dao.DataObject.ActivityDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityMapper {
    void insert(ActivityDO activityDo);

    int count();

    List<ActivityDO> selectAllByPage(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    ActivityDO selectByActivityId(@Param("id") Long activityId);

    Integer updateStatus(@Param("id") Long activityId,@Param("status") String targetActivityStatus);

    Integer deleteActivity(@Param("activityId") Long activityId);
}
